home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
DINKDEMO
/
DINKCLAS
/
DWINDOW.H
< prev
Wrap
Text File
|
1992-07-08
|
2KB
|
91 lines
/*
File: DWindow.h
Written by: Mark Gross
Copyright: ⌐ 1992 by Applied Technical Software, all rights reserved.
Use at your own risk.
*/
// This is the class declaration of the DWindow object
#ifndef __DWINDOW__
#define __DWINDOW__
#include "DEventHandler.h"
#include <Printing.h>
class DDocument;
class DWindow : public DEventHandler
{
protected:
short fVOffSet;
short fHOffSet;
THPrint fPrintRecord;
public:
DDocument *fDoc;
WindowPtr fWindowPtr;
DWindow(void);
~DWindow(void);
virtual Boolean Init(DDocument *doc, Boolean hasColorWindows);
virtual void FocusOnContent(void);
void FocusOnWindow(void);
void GetContentRect(Rect *r);
virtual void Draw( Rect *area);
virtual void KillMeNext(void);
virtual void Close(void);
virtual void HandleMouseDown(EventRecord *theEvent, short thePart, WindowPtr theWindow);
virtual void HandleUpdateEvt(EventRecord *theEvent);
virtual void HandleActivateEvt(EventRecord *theEvent);
void SetWindowTitle(void);
protected:
virtual void DoDrag(EventRecord *theEvent);
virtual void DoGrow(EventRecord *theEvent);
virtual void DoZoom(short thePart);
virtual void DoContent(EventRecord *theEvent);
public:
virtual void DoPageSetUp(void);
virtual void DoPrint(void);
};// end of class declaration for the DWindow Class of objects
#define rWindowID 1000
#define kStagger 20
#define MINHIGHT 75
#define MINWIDTH 75
#define rHScroll 1
#define rVScroll 2
#define kScrollOverlap 16
#define kScrollBarWidth 16
#define kScrollBarPos 15
#endif __DWINDOW__